package com.zhang.crm.service;

import com.github.pagehelper.PageInfo;
import com.zhang.crm.pojo.TUser;
import com.zhang.crm.pojo.req.UserReq;
import org.springframework.security.core.userdetails.UserDetails;

import java.util.List;

public interface UserService {
    UserDetails getUser(String loginAct);

    PageInfo<TUser> getUsers(Integer current);

    TUser getUserDetail(Integer id);

    Integer addUser(TUser tUser);

    Boolean editUser(UserReq userReq);

    Integer delUserById(Integer userId);

    Integer  delUserBatch(List<String> users);

    List<TUser> getUserSelectName();

}
